package com.example.springmvc_demo2.service;

import com.example.springmvc_demo2.entity.User;
import com.example.springmvc_demo2.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginService {
    @Autowired
    private UserMapper userMapper;
    public User login(User user) {
        user = userMapper.login(user);
        return user;
    }

}
